cmake_minimum_required(VERSION 2.8)
project(ch2_1_select)

if (CMAKE_BUILD_TYPE STREQUAL Debug)
message(STATUS "we are going to build debug version")
endif()

set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -rdynamic -ggdb -Wno-sign-compare")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -rdynamic -Wno-sign-compare")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

add_executable(ch2_1select ch2s1_select.c)

